package com.example.blog_system.service;

import com.example.blog_system.model.domain.Article;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IArticleService {

    public PageInfo<Article> selectArticleWithPage(Integer page, Integer count);

    public List<Article> getHeatArticles();

    public Article selectArticleWithId(Integer id);

    public void publish(Article article);

    // 根据主键更新文章
    public void updateArticleWithId(Article article);

    // 根据主键删除文章
    public void deleteArticleWithId(int id);

}
